

//
//  MBProgressHUDTool.m
//  FreshMember
//
//  Created by qyc on 2019/6/27.
//  Copyright © 2019 qyc. All rights reserved.
//

#import "MBProgressHUDTool.h"

@implementation MBProgressHUDTool

+ (MBProgressHUDTool *)shareProgressHUD {
    static dispatch_once_t pred = 0;
    __strong static MBProgressHUDTool *_shareProgressHUD= nil;
    dispatch_once(&pred, ^{
        _shareProgressHUD = [[MBProgressHUDTool alloc] init];
    });
    return _shareProgressHUD;
}

- (void)showHUDAddedTo:(UIView *)view {
    self.hud = [MBProgressHUD showHUDAddedTo:view animated:YES];
}

- (void)hideHUD {
    [self.hud hideAnimated:YES];
}
@end
